#!/usr/bin/env python3.3

x=20
# 11
# 12 6
# 13
# 14 7 
# 15 3 5
# 16 8 4
# 17
# 18 9
# 19
# 20 10 2 5
# only check 11 to 19 
while x%19!=0 or x%18!=0 or x%17!=0 or x%16!=0 or x%15!=0 or x%14!=0 or x%13!=0 or x%12!=0 or x%11!=0:
  x+=20
print(x)
